package com.jctrip.hotel.management.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@ApiModel(value = "采购报表列表信息-返回值")
@Data
@Builder
public class GetPurchaseResult {
    @ApiModelProperty(value = "采购报表列表")
    private List<PurchaseInfo> records;

    @ApiModelProperty(value = "供应总数")
    private Long total;

    @ApiModelProperty(value = "当前页码")
    private Long current;

    @ApiModelProperty(value = "当前页面大小")
    private Long size;

    @ApiModelProperty(value = "共几页")
    private Long pages;

    @ApiModel(value = "采购报表对象")
    @Data
    @Builder
    public static class PurchaseInfo{
        @ApiModelProperty(value = "供应码")
        private String sourceCode;

        @ApiModelProperty(value = "详情列表")
        private List<PurchaseDetailInfo> details;
    }

    @ApiModel(value = "采购报表详情对象")
    @Data
    @Builder
    public static class PurchaseDetailInfo{
        @ApiModelProperty(value = "供应商名")
        private String supplierName;

        @ApiModelProperty(value = "日订单数")
        private Long dayOrderCount;

        @ApiModelProperty(value = "日间夜数")
        private Long dayRoomNightQuantity;

        @ApiModelProperty(value = "日销量")
        private BigDecimal dayAmount;

        @ApiModelProperty(value = "月订单数")
        private Long monthOrderCount;

        @ApiModelProperty(value = "月间夜数")
        private Long monthRoomNightQuantity;

        @ApiModelProperty(value = "月销量")
        private BigDecimal monthAmount;
    }
}
